/**
 * 对用户进行操作
 */
import React from 'react';
import './user.css';
import AddUser  from './AddUser'; // 添加用户
import HeardImage from './HeardImage'; // 上传头像
import UpdateUser from './UpdateUser'; // 修改用户
import DelUser from './DelUser';// 删除用户
import RefreshUser from './RefreshUser'; //刷新用户

class ButtonUser extends React.Component {

  render () {
    return (
      <div>
        {/*新增用户*/}
        <AddUser />
        {/*上传头像*/}
        <HeardImage getUser={this.props.getUserId}/>
        {/*修改用户*/}
        <UpdateUser getUser={this.props.getUserId}/>
        {/*删除用户*/}
        <DelUser getUser={this.props.getUserId}/>
        {/*刷新*/}
        <RefreshUser getUser={this.props.getUserId}/>

        {/*<Button onClick={this.updateUser}>修改用户</Button>*/}
        {/*<Button onClick={this.delUser}>删除用户</Button>*/}
        {/*<Button onClick={this.refreshUser}>刷新列表</Button>*/}
        {/*<Button onClick={this.approvalUser}>审核用户</Button>*/}
      </div>
    )
  }
}

export default ButtonUser